const { defineConfig } = require('@vue/cli-service')
module.exports = defineConfig({
  transpileDependencies: true,
  lintOnSave: false,
  devServer: {
    open: true,
    proxy: {
      '/api': {
        target: `http://localhost/dev-api/`,
        changeOrigin: true,
        pathRewrite: {
          //路径重写
          "/api": "", //选择忽略拦截器里面的单词
        },
      }
    }
  }
})